import request from '@/utils/request'

// 查询栏目类型列表
export function listMhColumnType(query) {
  return request({
    url: '/system/mhColumnType/list',
    method: 'get',
    params: query
  })
}
// 查询栏目类型列表
export function listAllMhColumnType(query) {
  return request({
    url: '/system/mhColumnType/listAll',
    method: 'get',
    params: query
  })
}
// 查询栏目类型详细
export function getMhColumnType(id) {
  return request({
    url: '/system/mhColumnType/' + id,
    method: 'get'
  })
}

// 新增栏目类型
export function addMhColumnType(data) {
  return request({
    url: '/system/mhColumnType',
    method: 'post',
    data: data
  })
}

// 修改栏目类型
export function updateMhColumnType(data) {
  return request({
    url: '/system/mhColumnType',
    method: 'put',
    data: data
  })
}

// 删除栏目类型
export function delMhColumnType(id) {
  return request({
    url: '/system/mhColumnType/' + id,
    method: 'delete'
  })
}
